import Router from "@koa/router";
import { controller } from "../utils/controller";
import auth from "./api/auth";
import oss from "./api/oss";
import lcPage from "./api/lc-page";
import user from "./api/user";
import role from "./api/role";
import permission from "./api/permission";

export const apiRouter = new Router({
  prefix: "/api",
});

auth(apiRouter, controller);
user(apiRouter, controller);
role(apiRouter, controller);
permission(apiRouter, controller);
oss(apiRouter, controller);
lcPage(apiRouter, controller);
